package router

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"proj-dev-sys/handler"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()

	r.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "hello World!")
	})
	r.POST("/good", handler.Good)
	r.GET("/list", handler.List)
	return r
}
